<%-- 
    Document   : viewQuestions
    Created on : 28-nov-2012, 18:16:27
    Author     : Marco
--%>
<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>32Learn</title>
    </head>
    <body>
        <c:choose>
            <c:when test="${userLevel == null}">
                <%@include file="errorPage.jsp"%>
            </c:when><c:otherwise>
                <b>${inhoud.viewQuestionT}:</b><br>
                <c:forEach var="tempQuestion" items="${vragenBeantwoord}">                
                    <a  href="#" onclick="$('#viewQuestion').load('answer?id=${tempQuestion.questionID}', function() {}); setTimeout(function(){ $('#viewAnswer').load('viewAnswer.jsp', function() {}); }, 500 );">${tempQuestion.content}</a><br>
                </c:forEach>
                <b>${inhoud.viewQuestionT2}:</b><br>
                <c:forEach var="tempQuestion2" items="${vragenUitSessie}">
                    <c:choose>
                        <c:when test="${userLevel == 1}">
                            ${tempQuestion2.content}<br>
                        </c:when><c:otherwise>
                            <a href="#" onclick="$('#viewQuestion').load('answer?id=${tempQuestion2.questionID}', function() {}); setTimeout(function(){ $('#viewAnswer').load('viewAnswer.jsp', function() {}); }, 500 );">${tempQuestion2.content}</a><br>
                        </c:otherwise>
                    </c:choose>
                </c:forEach>
            </c:otherwise></c:choose>
    </body>
</html>
